import baseRequest from "@/common/js/request.js"

/**
 * 获取就业意向列表
 */
function getIntentionPageList(option) {
  return baseRequest('/jcApi/empIntention/myList', option)
}

/**
 * 获取就业意向详情
 */
function getIntentionDetail(id) {
  return baseRequest('/jcApi/empIntention/detail', {id})
}

/**
 * 保存
 * @param params
 */
function saveIntention(params) {
	return baseRequest(params.id? '/jcApi/empIntention/edit':'/jcApi/empIntention/add', params, 'POST')
}

/**
 * 删除
 * @param resumeIds
 */
function deleteIntention(resumeIds) {
	return baseRequest('/jcApi/empIntention/remove/' + resumeIds, {}, 'POST')
}

export{
	getIntentionPageList,
	getIntentionDetail,
	saveIntention,
	deleteIntention
}